package com.qfoud.edu.shiro.framwork.result;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

/**
 * @author xiaobobo
 * @title: LoginResultNotify
 * @projectName cd-java-2303-project-parent
 * @description: 这个就是我们定义的规范(登陆结果的通知)
 * @date 2023/5/15  14:16
 */
public abstract class LoginResultNotify {

    /**
     * 登陆成功的通知
     * @param req
     * @param resp
     */
    public abstract void success(ServletRequest req, ServletResponse resp);

    /**
     * 登陆失败的通知
     * @param req
     * @param resp
     */
    public abstract void fail(ServletRequest req, ServletResponse resp);

}
